<?php
namespace Common\Behavior;
use Think\Behavior;

class SettingBehavior extends Behavior{
    public function run(&$params){
        if(MODULE_NAME == 'Install'){
            return true;
        }else {
            //自动安装判断
            $lock_file = './Data/install.lock';
            if(!file_exists($lock_file)){
                redirect(U('Install/index/index'));
                exit;
            }
        }
    }
}